<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html>
<head>
	<title>部门设置</title>
	<%@ include file="/WEB-INF/jsp/public/common.jspf" %>
	 <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/style/blue/forum.css" />
	 <script language="javascript" src="${pageContext.request.contextPath}/fckeditor/fckeditor.js" charset="utf-8"></script>
	<script type="text/javascript">	
	 $(document).ready(function () {
	$.fn.extend({
	    textareaAutoHeight: function (options) {
	        this._options = {
	            minHeight: 0,
	            maxHeight: 1000
	        }

	        this.init = function () {
	            for (var p in options) {
	                this._options[p] = options[p];
	            }
	            if (this._options.minHeight == 0) {
	                this._options.minHeight=parseFloat($(this).height());
	            }
	            for (var p in this._options) {
	                if ($(this).attr(p) == null) {
	                    $(this).attr(p, this._options[p]);
	                }
	            }
	            $(this).keyup(this.resetHeight).change(this.resetHeight)
	            .focus(this.resetHeight);
	        }
	        this.resetHeight = function () {
	            var _minHeight = parseFloat($(this).attr("minHeight"));
	            var _maxHeight = parseFloat($(this).attr("maxHeight"));

	            if (!$.browser.msie) {
	                $(this).height(0);
	            }
	            var h = parseFloat(this.scrollHeight);
	            h = h < _minHeight ? _minHeight :
	                        h > _maxHeight ? _maxHeight : h;
	            $(this).height(h).scrollTop(h);
	            if (h >= _maxHeight) {
	                $(this).css("overflow-y", "scroll");
	            }
	            else {
	                $(this).css("overflow-y", "hidden");
	            }
	        }
	        this.init();
	    }
	});	
	$("#textarea3").textareaAutoHeight({ minHeight:50, maxHeight:1500 });
		});	
		</script>
</head>
<body>

<!-- 标题显示 --> 
<div id="Title_bar">
    <div id="Title_bar_Head">
        <div id="Title_Head"></div>
        <div id="Title"><!--页面标题-->
            <img border="0" width="13" height="13" src="${pageContext.request.contextPath}/style/images/title_arrow.gif"/> 查看文章
        </div>
        <div id="Title_End"></div>
    </div>
</div>

<!--显示表单内容-->
<div id=MainArea>

        
        <div class="ItemBlock_Title1"><!-- 信息说明<DIV CLASS="ItemBlock_Title1">
        	<IMG BORDER="0" WIDTH="4" HEIGHT="7" SRC="${pageContext.request.contextPath}/style/blue/images/item_point.gif" /> 部门信息 </DIV>  -->
        </div>
        
        <!-- 表单内容显示 -->
        <div class="ItemBlockBorder">
            <div class="ItemBlock">
                <table cellpadding="0" cellspacing="0" class="mainForm">
                    <tr><th><div style="font-size:20px;font-weight:bold;color:#FF0000 ">${name}</div></th></tr>
                    <tr>
                        <td><%-- <s:textarea name="content" cssClass="TextareaStyle" id="textarea3"  readonly="true"  cssStyle="width:1200px;overflow-y:visible"></s:textarea> --%>
                        ${content}
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <br> </br>
    <div class="ForumPageTableBorder" style="margin-top: 25px;">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="rd">
			<caption style="font-size:18px;color:red;font-weight:bold;">评论列表</caption>
				<!--表头-->
				<tr align="center" valign="middle" id="TableTitle">
					<td colspan="3" class="ForumPageTableTitleLeft" width="200">作者和时间</td>
					<td  width="800" class="ForumPageTableTitle">内容</td>

				</tr>
				<tr height="3"></tr>
			
				<!--版面列表-->
				<tbody class="dataContainer" datakey="forumList">
				
				 <s:iterator value="#commmentList" id="co">
					<tr height="45" align="center" class="template"  id="TableTitle">
						<td width="3px"></td>
						<td width="40px" class="ForumPageTableDataLine">
							<img src="${pageContext.request.contextPath}/style/images/cer.gif" />
						</td>
						<td class="ForumPageTableDataLine" >
							<ul class="ForumPageTopicUl">
								<li class="ForumPageTopic"><s:property value="(#operatorList.{?#co.operatorId==#this.id})[0].username"/>&nbsp;</li>
								<li class="ForumPageTopicMemo">${createTime}</li>
							</ul>
						</td>
						<td class="ForumPageTableDataLine"><b>${content}</b></td>				
					
			
					</tr>
				</s:iterator>						
				</tbody>			
				<tr height="3"></tr>
			</table>
			</div>
        <div id="InputDetailBar">
         <s:a action="rdfile_addComment1UI?rdfileId=%{id}"><img src="${pageContext.request.contextPath}/style/images/comment.png" /></s:a>
            <a href="javascript:history.go(-1);"><img src="${pageContext.request.contextPath}/style/images/goBack.png"/></a>
        </div>
</div>



</body>
</html>
